package tx.core;

/**
 * A T Tetraminoe.
 * @author Guilherme Mauro Germoglio Barbosa - germoglio@gmail.com
 */
public class TTetraminoe extends Tetraminoe {

	/**
	 * The relative coordinates for rotation of this tetraminoe.
	 */
	private static final int[][][] T_RELATIVE_COORDINATES = {   
															{ 
															   {0, 1},
															   {1, 0},
															   {1, 1},
															   {2, 1}
															},
															{ 
															   {1, 0},
															   {1, 1},
															   {1, 2},
															   {2, 1}
															},
															{ 
																{0, 1},
																{1, 1},
																{1, 2},
																{2, 1}
															},
															{ 
																{0, 1},
																{1, 0},
																{1, 1},
																{1, 2},
															},
														};
	/**
	 * The rotation offsets, in order to correct positions after the rotation.
	 */
	private static final int[][] T_ROTATION_OFFSETS = {
														{0, -1},
														{-1, 0},
														{0, -1},
														{0, -1}
													};
	
	
	/**
	 * Creates a T Tetraminoe with the specified color. It will be a T rotate 180 degrees clockwise.
	 * @param color The color. It can be found in tx.core.BlockColors constants.
	 */
	public TTetraminoe(int color) {
		super(color, T_RELATIVE_COORDINATES, T_ROTATION_OFFSETS);
	}

}
